//
//  ViewModelClass.m
//  MyAFNetWorking
//
//  Created by jianglinfeng on 16/1/27.
//  Copyright © 2016年 jianglinfeng. All rights reserved.
//

#import "ViewModelClass.h"

@implementation ViewModelClass

- (void)netWorkStateWithConnectBlock:(NetWorkBlock)netConnectBlock WithURLString:(NSString *)strURL {

    __block id returnData = nil;
    [NetRequestClass NetWorkReachabilityWithURLString:strURL parameter:nil result:^(id returnValue, id data) {
        returnData = returnValue;
    }];
    netConnectBlock(YES);
}

- (void)setBlockWithReturnBlock:(ReturnValueBlock)returnBlock WithErrorBlock:(ErrorCodeBlock)errorBlock {

    _returnBlock = returnBlock;
    _errorBlock = errorBlock;
}

@end
